package com.library.service;

import com.library.common.Result;
import com.library.entity.Books;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LDH
 * @since 2022-05-12
 */
public interface IBooksService extends IService<Books> {
    Result getBookAll();
    Result addBook(Books books);
    Result deleteBook(int id);
    Result putBook(Books books);
    Result likeBook(String name);
    Result deleteByList(Map<String, List> ids);
    Result putByList(Map<String, List<Books>> booksMap);
    Result booksPage(int page, int pageNum);
}
